package com.vision.controller;

import com.aliyun.sts20150401.models.AssumeRoleResponse;
import com.vision.pojo.AjaxResult;
import com.vision.utils.AliOssUtil;
import com.vision.utils.UUIDUtil;
import org.jetbrains.annotations.NotNull;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

@RestController
public class FileController {
    @GetMapping("/getToken")
    public AjaxResult<AssumeRoleResponse> getAssumeRoleResponse() throws Exception {
        return AjaxResult.success(AliOssUtil.getAssumeRoleResponse());
    }
}
